package com.zqh.ordercheckexpired.controller;

import com.zqh.myfmmall.result.Result;
import com.zqh.ordercheckexpired.service.CheckExpiredOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-03-02 22:35
 */
@RestController
public class CheckExpiredOrderController{
    @Autowired
    private CheckExpiredOrderService checkExpiredOrderService;

    @PostMapping("checkExpiredOrder")
    public Result checkExpiredOrder(@RequestParam("orderId") String orderId){
        return checkExpiredOrderService.checkExpiredOrder(orderId);
    }
}
